




function litab(m,cou){
        for(var i=1;i<=cou;i++){
                if (i==m){                        
                      document.getElementById("a"+i).style.color="white";
					  document.getElementById("a"+i).style.backgroundColor="#159E6B";
					  document.getElementById('tab'+i).style.display='block';					
                        }
                else {
					 document.getElementById("a"+i).style.color="black";
					 document.getElementById("a"+i).style.backgroundColor="#F7F7F7";	
                     document.getElementById('tab'+i).style.display='none';
                        }
        }
}





function hometab(m,cou){
        for(var i=1;i<=cou;i++){
                if (i==m){                        
                      document.getElementById("b"+i).style.color="white";
					  document.getElementById("b"+i).style.backgroundColor="#4A916F";	
					  document.getElementById('tab'+i).style.display='block';					
                        }
                else {
					 document.getElementById("b"+i).style.color="black";
					 document.getElementById("b"+i).style.backgroundImage="none";	
					 document.getElementById("b"+i).style.backgroundColor="";	
                     document.getElementById('tab'+i).style.display='none';
                 }
        }
}



function coltab(j,numb){
        for(var i=1;i<=numb;i++){
                if (i==j){                        
                      document.getElementById("col"+i).style.backgroundColor="#EEE";
					  document.getElementById("col01"+i).style.backgroundImage="url(images/kczx_son/tygk01.jpg)";						
                        }
                else {
                     document.getElementById("col"+i).style.background="#FFF";
					 document.getElementById("col01"+i).style.backgroundImage="none";      
                        }
        }
}



function cotab(j,numb){
        for(var i=1;i<=numb;i++){
                if (i==j){                        
                      document.getElementById("co"+i).style.backgroundColor="#EEE";
					  document.getElementById("co01"+i).style.backgroundImage="url(images/grzx_images/ksxx.jpg)";						
                        }
                else {
                     document.getElementById("co"+i).style.background="#FFF";
					 document.getElementById("co01"+i).style.backgroundImage="none";      
                        }
        }
}




function outt(a,numbb){
        for(var i=1;i<=numbb;i++){
                if (i==a){                        
                      document.getElementById("col"+i).style.backgroundColor="#FFF";
					  document.getElementById("col01"+i).style.backgroundImage="none";						
                        }
        }
}


function outtt(a,numbb){
        for(var i=1;i<=numbb;i++){
                if (i==a){                        
                      document.getElementById("co"+i).style.backgroundColor="#FFF";
					  document.getElementById("co01"+i).style.backgroundImage="none";						
                        }
        }
}



function colltab(g,numb1){
        for(var i=1;i<=numb1;i++){
                if (i==g){                        
                      document.getElementById("coll"+i).style.backgroundColor="#EEE";
					  document.getElementById("coll01"+i).style.backgroundImage="url(images/kczx_son/ck.jpg)";	
					  document.getElementById("coll01"+i).style.display="block"	;				
                        }
                else {
					 				
					
                     document.getElementById("coll"+i).style.background="#FFF";
					 document.getElementById("coll01"+i).style.backgroundImage="none";      
					 
					 
                        }
        }
}










function outtab(j,numbll){
        for(var i=1;i<=numbll;i++){
                if (i==j){                        
                      document.getElementById("coll"+i).style.backgroundColor="#FFF";
					  document.getElementById("coll01"+i).style.backgroundImage="none";			
                        }
               
        }
}




function clic(){ 
               document.getElementById("div00").style.display="block";
			   document.getElementById("div001").style.display="block";
			   document.getElementById("div002").style.display="block";	
			   document.getElementById("div003").style.display="block";
			   document.getElementById("div004").style.display="block";	
			   document.getElementById("div005").style.display="block";		
               }



function cli(){ 
               document.getElementById("div00").style.display="none";
			   document.getElementById("div001").style.display="none";
			   document.getElementById("div002").style.display="none";	
			   document.getElementById("div003").style.display="none";
			   document.getElementById("div004").style.display="none";
			   document.getElementById("div005").style.display="none";			
               }
               
 function cl(){ 
			   document.getElementById("div005").style.display="none";			
               }




function getObject(objectId) {
    if(document.getElementById && document.getElementById(objectId)) {
        return document.getElementById(objectId);
    } else if (document.all && document.all(objectId)) {
        return document.all(objectId);
    } else if (document.layers && document.layers[objectId]) {
        return document.layers[objectId];
    } else {
        return false;
    }
}





function GI(id){
	return document.getElementById(id);
}
function infen(var1){
	var fentip=new Array("","很差，浪费生命","很差，浪费生命","不喜欢","不喜欢","一般，不妨一看","一般，不妨一看","一般，不妨一看","喜欢，值得推荐","喜欢，值得推荐","非常喜欢，不容错过");
	if (var1>0){
		GI("pfno").innerHTML=var1+"分 ";
		GI("pftip").innerHTML=fentip[var1];
		GI("currentrating").style.display="none";
	}
	else{
		GI("pfno").innerHTML="";
		GI("pftip").innerHTML="";
		GI("currentrating").style.display="block";
	}
}

var http_request = false;
function makeRequest(url, functionName, httpType, sendData) {
	http_request = false;
	if (!httpType) httpType = "GET";
	if (window.XMLHttpRequest) { // Non-IE...
		http_request = new XMLHttpRequest();
		if (http_request.overrideMimeType) {
			http_request.overrideMimeType('text/plain');
		}
	} else if (window.ActiveXObject) { // IE
		try {
			http_request = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			try {
				http_request = new ActiveXObject("Microsoft.XMLHTTP");
			} catch (e) {}
		}
	}
	if (!http_request) {
		alert('无法发送请求，请稍后再试。');
		return false;
	}
	var changefunc="http_request.onreadystatechange = "+functionName;
	eval (changefunc);
	//http_request.onreadystatechange = alertContents;
	http_request.open(httpType, url, true);
	http_request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
	http_request.send(sendData);
}
function getReturnedText () {
	if (http_request.readyState == 4) {
		if (http_request.status == 200) {
			var messagereturn = http_request.responseText;
			return messagereturn;
		} else {
			alert('请求出现问题，请稍后再试。');
		}
	}
}
function EchoReturnedText () {
	if (http_request.readyState == 4) {
		if (http_request.status == 200) {
			var messagereturn = http_request.responseText;
			if(messagereturn!='isfail'){
				var r;
				r=messagereturn.split('|');
				if(r.length!=1){
					if (r[0]=="8")
					{
						alert("评分成功，感谢您的参与。")
						GI("pfshi").innerHTML=r[1];
						GI("pfge").innerHTML=r[2];
						GI("pfren").innerHTML=r[3];
						GI("currentrating").style.width=r[4]+"px";
					}
				}
				else{
					if (messagereturn=="1")
					{
						alert("您已经参加过该网站的评分。")
					}
					else if (messagereturn=="2")
					{
						alert("评分失败，请稍后再试。")
					}
					else if (messagereturn=="3")
					{
						alert("两次评分间隔时间太短，请稍后再试。")
					}
					else{
						alert(messagereturn);
					}
					//document.getElementById('ajaxarea').innerHTML=messagereturn;
				}
			}
		} else {
			alert('请求出现问题，请稍后再试。');
		}
	}
}











function divrefresh(){  
    var m1=document.getElementById('movie1');   
    var m2=document.getElementById('movie2');  
    var m3=document.getElementById('movie3');  
    if(m1.style.display=='block'){  
	    
       m1.style.display='none';     
       m2.style.display='block';   
   }else if(
       m2.style.display=='block'){ 
       m2.style.display='none';      
	   m3.style.display='block';   }
	else{      
	   m3.style.display='none';     
	   m1.style.display='block';   }
	   }


function xxtab(){
	  var x1=document.getElementById('fxtab01');   
      var x2=document.getElementById('fxtab02');  
	  if(x1.style.display=='block'){
	   x1.style.display='none';     
       x2.style.display='block'; 		  
	 } else{
	   x1.style.display='block';     
       x2.style.display='none'; 	
		 
		 }
		
	}



function tab300(b,cou){
        for(var i=1;i<=cou;i++){
                if (i==b){                        
                      document.getElementById("tab030"+i).style.backgroundColor="white";
					  document.getElementById("tab030"+i).style.border="1px solid #FFF";	
					  document.getElementById('tab300'+i).style.display='block';					
                        }
                else {
					 document.getElementById("tab030"+i).style.backgroundColor="#E2EFFC";
					 document.getElementById("tab030"+i).style.border="1px solid #E2EFFC";	
                     document.getElementById('tab300'+i).style.display='none';
                        }
        }
}



			
function rep1(c,co){
	  for(var i=1;i<=co;i++){
                if (i==c){
					document.getElementById("replay1"+i).style.display="block";
					}
					else{
						document.getElementById("replay1"+i).style.display="none";
						}
					}
			}
			
			
			
			
			
function rep2(c,co){
	  for(var i=1;i<=co;i++){
                if (i==c){
					document.getElementById("replay2"+i).style.display="block";
					}
					else{
						document.getElementById("replay2"+i).style.display="none";
						}
					}
			}
			
			


function rep3(c,co){
	  for(var i=1;i<=co;i++){
                if (i==c){
					document.getElementById("replay3"+i).style.display="block";
					}
					else{
						document.getElementById("replay3"+i).style.display="none";
						}
					}
			}
			
			
			
			

function rep4(c,co){
	  for(var i=1;i<=co;i++){
                if (i==c){
					document.getElementById("replay4"+i).style.display="block";
					}
					else{
						document.getElementById("replay4"+i).style.display="none";
						}
					}
			}
			
			
			
			
function alkmore(c,co){
	  for(var i=1;i<=co;i++){
                if (i==c){
				document.getElementById("alkmore0"+i).style.backgroundColor="#286A46";
				document.getElementById("alkmore0"+i).style.color="#FAFAFA";
					document.getElementById("alktab0"+i).style.display="block";
					}
					else{
						document.getElementById("alkmore0"+i).style.backgroundColor="#FAFAFA";
						document.getElementById("alkmore0"+i).style.color="#111";
						document.getElementById("alktab0"+i).style.display="none";
						}
					}
			}
			
			

